<template>
    <el-drawer v-model="drawer" size="70%" direction="ttb" :with-header="false" style="padding-right: 20px">
        <h4>添加权限</h4>
        <el-form :model="form" label-width="120px">
            <el-form-item label="姓名">
                <el-input v-model="form.name" />
            </el-form-item>
            <el-form-item>
                <el-button type="primary" @click="onSubmit">提交保存</el-button>
            </el-form-item>
        </el-form>
    </el-drawer>
</template>
<script>
export default{
    data(){
        return {
            form:{},
            drawer:false,
        }
    },
    methods:{
        // 打开弹窗
        Open(res = {}){
            this.form = JSON.parse(JSON.stringify(res))
            this.drawer = true
        },
        // 提交事件
        onSubmit(){
            
        }
    },
}
</script>